package cn.zebra.dev.mall.module.weixinPay.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

public interface WeXinPayService {

    /**
     * @Description 生成预支付交易单
     * @Date 13:49 2020/4/27
     * @param  orderId
     * @param  request
     **/
    Map<String, String> prepay(Long orderId, HttpServletRequest request) throws Exception;

    /**
     * @Description 查询订单的支付状态
     * @Date 10:28 2020/4/27
     * @param ordersSn 订单号
     **/
    Map<String, String> findByPayStatus(String ordersSn);


    void notifyUrl(HttpServletRequest request, HttpServletResponse response) throws Exception;
}
